<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../../js/vue.js"></script>
</head>
<body>
    <div id="app">
        <h1>姓名案例-插值语法实现</h1>
        <p>{{msg}}</p>
        姓：<input type="text" v-model="firstName" > <br>
        名：<input type="text" v-model="lastName" > <br>
        姓名：<span>{{firstName}}-{{lastName}}</span>


    </div>
</body>
<script type="text/javascript">
    Vue.config.productionTip = false; //阻止 vue 在启动时生成生产提示
    var app = new Vue({
        el: '#app',
        data: {
            msg: 'Hello Vue!',
            firstName: 'John',
            lastName: 'Doe'
        }
    })
</script>
</html>